<template>
  <div>
    <div  class="back clear">
    <div class="like clear" v-for="item in answerList" :key="item.id">
      
      <div class="tone clear">
        <div class="left"><img :src="item.avatar" alt=""></div>
        <div class="cen">
          <div class="tit">{{ item.name }} 赞了你的评论</div>
          <div class="time">{{ item.time }}</div>
        </div>
        <div class="right"><span>回复</span></div>
      </div>
      <div class="msg">{{ item.msg }}</div>
      <div class="btwo clear">
        <div>
          <img :src="item.img" alt="">
        </div>
        <div class="content" >{{ item.content }} </div>

      </div>
      
     

    </div>

  </div>
  </div>
</template>

<script>
  export default {
    props: {
      answerList: {
      type: Array,
      required: true,
    },
  },
  mounted(){
    console.log(this.answerList)
  }
  }
</script>

<style lang="scss" scoped>
.clear::before,.clear::after{
  content: '';
  display: block;
  height: 0;
  clear: both;
  overflow: hidden;
}
.back{
  background-color: rgb(214, 214, 214);
  
}
.like{
  position: relative;
  font-size: 14px;
  width: 100%;
  height: 154px;
  
  background-color: #fff;
  border-bottom: 1px solid #f2f2f2; 
  padding: 14px;
  box-sizing: border-box;
  .tone{
    /* background-color: rgb(255, 126, 126); */
    margin-bottom: 8px;
   
    .left{
      float: left;
      margin-right: 15px;
      img{
      width: 32px;
      height: 32px;
      border-radius: 48px;
      }
    }
    .cen{
        float: left; 
      
      }  
    .right{
      float: right;
      width: 50px;
      height: 26px;      
      border: 1px solid #dad7de;
      border-radius: 13px;
      
      span{
        line-height: 26px;
        font-size: 12px;
        font-weight: 400;
        font-style: normal;
        display: inline-block;
        margin-left: 12px;
      }
    }  
    
  }
  .msg{
    color: #333;
    font-size: 14px;
    margin-bottom: 15px;
  }
  .btwo{
    background-color: #f9f9f9;
    color: #a599b2;
    float: left;
    
    
    img{
      height: 64px;
      width: 64px;
      float: left;
      margin-right: 10px;
    }
    .content{
      font-size: 12px;
      line-height: 24px;
      text-align: left;
      margin-top: 10px;

    }
  }


}
.time{
  font-size: 12px;
  color:#a599b2;
  margin-top: 3px;
}

</style>